<?php
/**
 * 企业评分验证器
 */

namespace app\common\validate;

class MarkValidate extends CommonBaseValidate
{
    protected $rule = [
            'project_id|项目' => 'require',
    'project_log_id|竞价记录' => 'require',
    'company_id|' => 'require',
    'admin_user_id|评分员' => 'require',
    'detail|详情' => 'require',

    ];

    protected $message = [
            'project_id.required' => '项目不能为空',
    'project_log_id.required' => '竞价记录不能为空',
    'company_id.required' => '不能为空',
    'admin_user_id.required' => '评分员不能为空',
    'detail.required' => '详情不能为空',

    ];

    protected $scene = [
        'admin_add'     => ['project_id', 'project_log_id', 'company_id', 'admin_user_id', 'detail', ],
        'admin_edit'    => ['id', 'project_id', 'project_log_id', 'company_id', 'admin_user_id', 'detail', ],
        'admin_del'     => ['id', ],
        'admin_disable' => ['id', ],
        'admin_enable'  => ['id', ],
        'api_add'       => ['project_id', 'project_log_id', 'company_id', 'admin_user_id', 'detail', ],
        'api_info'      => ['id', ],
        'api_edit'      => ['id', 'project_id', 'project_log_id', 'company_id', 'admin_user_id', 'detail', ],
        'api_del'       => ['id', ],
        'api_disable'   => ['id', ],
        'api_enable'    => ['id', ],
    ];
}
